import request from '@/config/axios'

export interface AccountingLeaderSubsidyVO {
  id: number
  registerData: localdate
  jobNumber: string
  staffName: string
  teamCode: string
  teamName: string
  dictPost: number
  teamMembers: number
  condition: string
  standard: number
  standardOutput: number
  standardMembers: number
  monthMembers: number
  monthOutput: number
  performance: number
  remark: string
  creatorName: string
  updaterName: string
  actualPayment: number
}

// 查询工资核算-车间工资核算-班组长补贴列表
export const getAccountingLeaderSubsidyPage = async (params) => {
  return await request.get({ url: `/salary/accounting-leader-subsidy/page`, params })
}

// 查询工资核算-车间工资核算-班组长补贴详情
export const getAccountingLeaderSubsidy = async (id: number) => {
  return await request.get({ url: `/salary/accounting-leader-subsidy/get?id=` + id })
}

// 新增工资核算-车间工资核算-班组长补贴
export const createAccountingLeaderSubsidy = async (data: AccountingLeaderSubsidyVO) => {
  return await request.post({ url: `/salary/accounting-leader-subsidy/create`, data })
}

// 修改工资核算-车间工资核算-班组长补贴
export const updateAccountingLeaderSubsidy = async (data: AccountingLeaderSubsidyVO) => {
  return await request.put({ url: `/salary/accounting-leader-subsidy/update`, data })
}

// 删除工资核算-车间工资核算-班组长补贴
export const deleteAccountingLeaderSubsidy = async (data) => {
  return await request.delete({ url: `/salary/accounting-leader-subsidy/delete?ids=`+ data })
}

// 导出工资核算-车间工资核算-班组长补贴 Excel
export const exportAccountingLeaderSubsidy = async (data) => {
  return await request.download({ url: `/salary/accounting-leader-subsidy/export-excel`, data })
}

// 查询配置中心-人员档案所有数据（名称查询）
export const getStaffList = async (params) => {
  return await request.get({ url: `/config/org-staff-archives/page`,params})
}